package com.etc.service1;

import java.util.List;

import com.etc.entity.AnsMessage;

public interface AnsMessageServiceDao {
	public boolean answerMessage(AnsMessage ansmessage);
	
	public List<AnsMessage> findTitleAnsMessage(int ansid);


	public boolean deleteAnsAnsMessage(int ansid);

	public boolean deleteAnsMessage(int id);
	
    public List<AnsMessage> mySearch(String username,String search,int pageIndex,int pageSize);
	
	public boolean closeAnsMessage(int id);

	public boolean openAnsMessage(int id);

	public List<AnsMessage> findUserAnsMessage(String username);

	public List<AnsMessage> searchAllAnsMessage();
	
	public Long countAll();
	
	public Long countAllUser(String username);
	
	public List<AnsMessage> myAns(String username,int pageIndex,int pageSize);
}
